﻿<?php

function html_head($title)
{
	echo("<!DOCTYPE html>\n");
	echo("<html>\n");
	echo("<head>\n");
	echo("<meta http-equiv='Content-Type' content='text/html;charset=UTF-8' />\n");
	echo("<link rel='stylesheet' type='text/css' href='style.css' media='all' />\n");
	echo("<link rel='stylesheet' type='text/css' href='screen.css' media='screen' />\n");
	echo("<link rel='stylesheet' type='text/css' href='print.css' media='print' />\n");
	echo("<script type='text/javascript' src='nav_func.js'></script>\n");
	echo("<link rel='stylesheet' type='text/css' href='styleTasks.css' media='all' />\n");
	echo "<script type='text/javascript' src='tasks.js'></script>";	
	echo("<title>".$title."</title>\n");
}

function html_head_without_openings($title){

	echo("<link rel='stylesheet' type='text/css' href='style.css' media='all' />\n");
	echo("<link rel='stylesheet' type='text/css' href='screen.css' media='screen' />\n");
	echo("<link rel='stylesheet' type='text/css' href='print.css' media='print' />\n");
	echo("<script type='text/javascript' src='nav_func.js'></script>\n");
	echo("<title>".$title."</title>\n");
}

function menu()
{
?>
<!-- Menu bar #1. -->

<div class="menuBar" style="float:left;width:60em; margin-left:400px;">
<a class="menuButton" href="index.php">Meine Aufgaben</a>
<a class="menuButton" href="taskUebersicht.php">Übersicht über alle Aufgaben</a>
<a class="menuButton"
    href=""
    onclick="return buttonClick(event, 'menu4');"
    onmouseover="buttonMouseover(event, 'menu4');"
>Aufgaben verwalten</a>
<a class="menuButton" href="../index.php"><b></b>Intern</a>
<a class="menuButton" href="logout.php"><b><?php echo($_SESSION["username"])?></b> (Logout)</a>
</div>
<!-- Sub menus for einstellungen... -->

<div id="menu4" class="menu">
<a class="menuItem" href="addtask.php">Aufgabe eintragen</a>
<a class="menuItem" href="deleteTask.php">Aufgabe löschen</a>
<a class="menuItem" href="changeTask.php">Aufgabe ändern</a>
</div>
<p></p>
<?php
}

function html_feed()
{
?>
<br/>
<!--<div id="footer1">
    Fragen, &Auml;nderungsw&uuml;nsche und Kommentare bitte an: 
	<a href='mailto:sa.mueller@mx.uni-saarland.de'>Sabine M&uuml;ller</a>
	sa.mueller (at) mx.uni-saarland.de
  </div>
-->

</body>
</html>
<?php
}
?>


